package com.itheima.edu.info.manager.entry;

import com.itheima.edu.info.manager.controller.CustomerController;
import com.itheima.edu.info.manager.controller.ManagerController;

import java.util.Scanner;

public class InfoManagerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("============= 欢迎进入水果超市管理系统 =============");
            System.out.println("【1.顾客   2.管理员   3.退出】");
            System.out.println("您是  ?");
            String choice = sc.next();
            switch (choice){
                case "1":
                    System.out.println("您好!尊敬的顾客!");
                    CustomerController customerController = new CustomerController();
                    customerController.start();
                    break;
                case "2":
                    ManagerController managerController = new ManagerController();
                    managerController.start();
                    break;
                case "3":
                    System.out.println("感谢您的使用!");
                    System.exit(0);
                    break;
                default:
                    System.out.println("您输入有误，请重新输入!");
                    break;
            }
        }
    }
}
